package src.LLVM.cal;

import src.LLVM.IR;

public class AddIR implements IR {
    private final String op1;
    private final String op2;
    private static final String operation = "add";
    private final String resReg;
    public AddIR(String resReg ,String op1, String op2) {
        this.op1 = op1;
        this.op2 = op2;
        this.resReg = resReg;
    }
    @Override
    public String toString(){
        return "\t" + resReg + " = " + operation + " i32 " + op1 + ", " + op2;
    }
}
